-- GENERATED SPELL FOR [Avenger Metz] --


function spell0_28178(pUnit, Event) --@Hammer of Wrath,n/a--
pUnit:FullCastSpellOnTarget(51384,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28178', 3000, 1)
end

function Sorts_28178(pUnit, Event)
local choix_sorts_28178 = math.random(0, 0)
if choix_sorts_28178 == 0 then
pUnit:RegisterEvent('spell0_28178', 1, 1)
end
end

function mob28178_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28178', math.random(1500, 3000), 1)
end

function mob28178_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28178_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28178_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28178, 1, 'mob28178_Action')
RegisterUnitEvent(28178, 2, 'mob28178_Leave')
RegisterUnitEvent(28178, 3, 'mob28178_Kill')
RegisterUnitEvent(28178, 4, 'mob28178_Die')
